package com.atguigu.eduService.service;

import com.atguigu.eduService.entity.EduTeacher;
import com.atguigu.eduService.entity.vo.TeacherQuery;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author smday
 * @since 2020-07-25
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 分页条件查询教师
     * @param current 当前页
     * @param size 每页记录数
     * @param teacherQuery 条件对象
     */
    IPage<EduTeacher> pageQuery(Integer current, Integer size, TeacherQuery teacherQuery);

    /**
     * 查询名师 * 4
     */
    List<EduTeacher> listTeacher();

    /**
     * 分页查询名师列表
     * @param page page
     */
    Map<String, Object> getTeacherFrontList(Page<EduTeacher> page);
}
